package com.coolgame.login.configuration.transformers;

import java.lang.reflect.Field;

import com.coolgame.login.configuration.PropertyTransformer;
import com.coolgame.login.configuration.TransformationException;


/**
 *  
 * @copyright : (C) Copyright cool game Corporation 2011-2020
 * @date:2013-6-24
 * @author:Caiyw
 * @since JDK1.6
 * @description:TODO
 */
public class StringTransformer implements PropertyTransformer<String> {
    /**
     * Shared instance of this transformer. It's thread-safe so no need of multiple instances
     */
    public static final StringTransformer SHARED_INSTANCE = new StringTransformer();

    /**
     * Just returns value object
     *
     * @param value value that will be transformed
     * @param field value will be assigned to this field
     * @return return value object
     * @throws TransformationException never thrown
     */
    @Override
    public String transform(String value, Field field) throws TransformationException {
        return value;
    }
}
